/**
 * 
 */
package org.codesketch.common.model;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yvanovic
 *
 */
public class Headers implements Cloneable {

	private Map<String, String> headers;
	
	public Headers() {
		headers = new HashMap<String, String>();
	}

	public void setHeader(String key, String value) {
		
		headers.put(key, value);
	}

	public String getHeader(String key) {
		
		return headers.get(key);
	}

	@Override
	public Headers clone() {

		Headers clone = new Headers();
		clone.headers = new HashMap<String, String>(headers);
		return clone;
	}
}
